home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / CORE.ZIP / DeskLib / !DLUser / h / Hash next >
Text File  |  1995-05-21  |  655b  |  26 lines

  1.  
  2. #ifndef __dl_hash_h
  3. #define __dl_hash_h
  4. #ifndef __dl_core_h
  5. #include "DeskLib:Core.h"
  6. #endif
  7. typedef struct {
  8. char *name;
  9. } Hash_Obj;
  10. typedef struct
  11. {
  12. Hash_Obj **hash_table;
  13. int size;
  14. int max_entries;
  15. int mask;
  16. int num_entries;
  17. }Hash;
  18. extern Hash_Obj* Hash_GetObj(Hash *hashtable, char *name);
  19. extern Hash_Obj* Hash_PutObj(Hash *hashtable, Hash_Obj *entry);
  20. extern void Hash_InitTable(Hash *hashtable, int initial_table_size);
  21. extern void Hash_CleanTable(Hash *hashtable);
  22. typedef void (*Hash_WorkFunc)(Hash_Obj *);
  23. extern void Hash_WalkTable(Hash *hashtable,Hash_WorkFunc WorkFunc);
  24. extern Hash_Obj* Hash_RemoveObj(Hash *hashtable, char *name);
  25. #endif
  26.